package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Department;
import cn.wolfcode.crm.query.PageResult;
import cn.wolfcode.crm.query.QueryObject;

import java.util.List;

public interface IDepartmentService {



    Department selectByPrimaryKey(Long id);

    List<Department> selectAll();


    PageResult query(QueryObject qo);

    /**
     * 验证名称
     * @param id
     * @param name
     * @return
     */
    Boolean selectByName(Long id, String name);

    /**
     * 改变状态
     * @param id
     */
    void changeState(Long id);

    void saveOrUpdate(Department dept);
}
